package com.usian.apis.comment;

import com.usian.model.admin.dtos.CommentLikeDto;
import com.usian.model.comment.dtos.CommentDto;
import com.usian.model.comment.dtos.CommentSaveDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface CommentControllerApi {
    @PostMapping("/save")
    ResponseResult saveComment(@RequestBody CommentSaveDto dto);

    @PostMapping("/like")
    ResponseResult like(@RequestBody CommentLikeDto dto);

    @PostMapping("/load")
    ResponseResult findByArticleId(@RequestBody CommentDto dto);
}
